<!DOCTYPE html>
<html>
<head>
    <title></title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <div class="form-group col-sm-2">
                <input type="text" class="form-control" v-model="q.name" @keyup.enter="query" placeholder="字典名称">
            </div>
            <a class="btn btn-default" @click="query">查询</a>
			<#if shiro.hasPermission("styj1:b5b7airquality:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("styj1:b5b7airquality:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("styj1:b5b7airquality:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">统计时间</div>
                        <div class="col-sm-10">
                            <input type="text" name="statiTime" id="statiTime" class="form-control" v-model="b5B7AirQuality.statiTime" placeholder="统计时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">时间段</div>
                        <div class="col-sm-10">
                            <input type="text" name="time" id="time" class="form-control" v-model="b5B7AirQuality.time" placeholder="时间段"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">pm2.5</div>
                        <div class="col-sm-10">
                            <input type="text" name="pm2.5" id="pm2.5" class="form-control" v-model="b5B7AirQuality.pm2.5" placeholder="pm2.5"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">pm10</div>
                        <div class="col-sm-10">
                            <input type="text" name="pm10" id="pm10" class="form-control" v-model="b5B7AirQuality.pm10" placeholder="pm10"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">so2</div>
                        <div class="col-sm-10">
                            <input type="text" name="so2" id="so2" class="form-control" v-model="b5B7AirQuality.so2" placeholder="so2"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">no2</div>
                        <div class="col-sm-10">
                            <input type="text" name="no2" id="no2" class="form-control" v-model="b5B7AirQuality.no2" placeholder="no2"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">co</div>
                        <div class="col-sm-10">
                            <input type="text" name="co" id="co" class="form-control" v-model="b5B7AirQuality.co" placeholder="co"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label"></div>
                        <div class="col-sm-10">
                            <input type="text" name="vocs" id="vocs" class="form-control" v-model="b5B7AirQuality.vocs" placeholder=""/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label"></div>
                        <div class="col-sm-10">
                            <input type="text" name="o3" id="o3" class="form-control" v-model="b5B7AirQuality.o3" placeholder=""/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">机动车数量（柴油车和汽车）</div>
                        <div class="col-sm-10">
                            <input type="text" name="autoNumber" id="autoNumber" class="form-control" v-model="b5B7AirQuality.autoNumber" placeholder="机动车数量（柴油车和汽车）"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">AQI值</div>
                        <div class="col-sm-10">
                            <input type="text" name="aqi" id="aqi" class="form-control" v-model="b5B7AirQuality.aqi" placeholder="AQI值"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">空气质量优良天数</div>
                        <div class="col-sm-10">
                            <input type="text" name="dayNumber" id="dayNumber" class="form-control" v-model="b5B7AirQuality.dayNumber" placeholder="空气质量优良天数"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">文件路径</div>
                        <div class="col-sm-10">
                            <input type="text" name="filepath" id="filepath" class="form-control" v-model="b5B7AirQuality.filepath" placeholder="文件路径"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">录入人</div>
                        <div class="col-sm-10">
                            <input type="text" name="creatby" id="creatby" class="form-control" v-model="b5B7AirQuality.creatby" placeholder="录入人"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">录入时间</div>
                        <div class="col-sm-10">
                            <input type="text" name="creatat" id="creatat" class="form-control" v-model="b5B7AirQuality.creatat" placeholder="录入时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">上级部门</div>
                        <div class="col-sm-10">
                            <input type="text" name="parentCode" id="parentCode" class="form-control" v-model="b5B7AirQuality.parentCode" placeholder="上级部门"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">类型编码</div>
                        <div class="col-sm-10">
                            <input type="text" name="typeCode" id="typeCode" class="form-control" v-model="b5B7AirQuality.typeCode" placeholder="类型编码"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">更新时间</div>
                        <div class="col-sm-10">
                            <input type="text" name="updateTime" id="updateTime" class="form-control" v-model="b5B7AirQuality.updateTime" placeholder="更新时间"/>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label">数据文件上传</div>
                <div class="col-sm-10">
                    <input type="file" name="file" id="form_file" multiple="multiple" accept=".pdf,.xls,.xlsx,.docx,.doc" class="form-control"
                           placeholder="原始数据文件"/>
                    <input type="text" id="form_file_text" class="form-control" style="display :none" v-model="b5B7AirQuality.filepath" placeholder="原始数据文件"/>
                </div>

            </div>

            <div class="form-group" v-if="flag">
                <div class="col-sm-2 control-label">已上传文件</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="uploadfilename"  id="uploadfilename"  v-model="b5B7AirQuality.filepath" placeholder=""/>
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" id="btnSaveOrUpdate" data-loading-text="保存中..." @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/libs/bootstrapValidator.min.js"></script>
<script src="${request.contextPath}/statics/libs/zh_CN.js"></script>
<script src="${request.contextPath}/statics/libs/fileinput.min.js"></script>
<script src="${request.contextPath}/statics/libs/zh.js"></script>
<script src="${request.contextPath}/statics/js/modules/styj1/b5b7airquality.js?_${.now?long}"></script>
<script src="${request.contextPath}/statics/libs/uploadfile.js"></script>
</body>
</html>